from public.settins import Device,Response,Start_Thread
from apps.pssh import ssh,send_command,Config_command,api



def run(device: dict):
    d = Device(**device)
    c = ssh(d,application="配置备份")
    out = send_command(d,c,Config_command,application="配置备份")
def main():
    device_list = api.get_device
    Start_Thread(run, device_list)

if __name__ == '__main__':
    main()